#ifndef GFXUNITEMITTER_H
#define GFXUNITEMITTER_H

#include "gfxItem.h"
#include <QRectF>
#include <QPainter>
#include <QPixmap>

class GFXUnitEmitter : public GFXItem
{
public:
   explicit GFXUnitEmitter(ClientEntity *entity=0, QGraphicsItem *parent=0);
   //GFXUnitEmitter(const EntityBaseStats &stats, QGraphicsItem *parent=0);
   virtual ~GFXUnitEmitter();
   virtual void	mousePressEvent(QGraphicsSceneMouseEvent *event);

   QRectF boundingRect() const;
   void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
   virtual void tick();
   static void doPaint(const QColor &color, const qint32 size, QPainter& painter, const qreal scale);

protected:
   bool mCollapsed;
};

#endif
